import request from '@/utils/request'

// 查询农家产品介绍列表
export function listProduct_introduction(query) {
    return request({
        url: '/view/product_introduction/list',
        method: 'get',
        params: query
    })
}

// 查询农家产品介绍详细
export function getProduct_introduction(id) {
    return request({
        url: '/view/product_introduction/info',
        method: 'get',
        params: { id: id }
    })
}

// 新增农家产品介绍
export function addProduct_introduction(data) {
    return request({
        url: '/view/product_introduction',
        method: 'post',
        data: data
    })
}

// 修改农家产品介绍
export function updateProduct_introduction(data) {
    return request({
        url: '/view/product_introduction',
        method: 'put',
        data: data
    })
}

// 删除农家产品介绍
export function delProduct_introduction(id) {
    return request({
        url: '/view/product_introduction/' + id,
        method: 'delete'
    })
}

// 导出农家产品介绍
export function exportProduct_introduction(query) {
    return request({
        url: '/view/product_introduction/export',
        method: 'get',
        params: query
    })
}